/*
		ServEngine framework library
		A library to fast develop JEE online applications
	
		Copyright 2008 José Ignacio de Córdoba Álvaro

		Licensed under the Apache License, Version 2.0 (the "License");
		you may not use this file except in compliance with the License.
		You may obtain a copy of the License at

				http://www.apache.org/licenses/LICENSE-2.0

		Unless required by applicable law or agreed to in writing, software
		distributed under the License is distributed on an "AS IS" BASIS,
		WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
		See the License for the specific language governing permissions and
		limitations under the License.
	
		Jose Ignacio de Cordoba Alvaro
		http://ignacio.decordoba.com
*/

package com.servengine.portal;

import org.apache.struts.validator.ValidatorForm;

public class ActionActionForm extends ValidatorForm
{
	String className;
	Integer[] roleIds;
	protected boolean admin, guest;//Cuidado con copyProperties ya que permite que un admin modifique la acción.

	public void setClassName(String className)
	{
		this.className = className;
	}

	public String getClassName()
	{
		return className;
	}

	public void setRoleIds(Integer[] RoleIds)
	{
		this.roleIds = RoleIds;
	}

	public Integer[] getRoleIds()
	{
		return roleIds;
	}

	public void setAdmin(boolean admin)
	{
		this.admin = admin;
	}

	public boolean isAdmin()
	{
		return admin;
	}

	public void setGuest(boolean guest)
	{
		this.guest = guest;
	}

	public boolean isGuest()
	{
		return guest;
	}
}
